package cn.wolfcode.mapper;

import cn.wolfcode.domain.Role;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Long id);
    int insert(Role record);
    Role selectByPrimaryKey(Long id);
    List<Role> selectAll();
    int updateByPrimaryKey(Role record);


    int queryForCount(QueryObject qo);

    List<Role> queryForResult(QueryObject qo);

    List<Role> selectByEmployeeId(Long id);

    void saveBatchRelation(@Param("id") Long id, @Param("ids") Long[] ids);

    void deleteBatchRelation(Long id);

}